package org.example.platform.elasticsearch.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
public class Hotel {
    private String id;    //对应文档_id
    private String index; //对应索引名称
    private Float score;  //对应文档得分
    private Long version; //对应文档的版本号
    private String title; //对应索引中的title
    private String city;  //对应索引中的city
    private Double price; //对应索引中的price
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime; //对应索引中的price

    private Location location;
}
